*** Settings ***
Documentation           搭建ipmitool工具所需要的命令和变量
Resource                ../resource.robot
Library                 OperatingSystem
Library                 BuiltIn

*** Keywords ***
Run External Ipmi Command
    [Documentation]     使用带外ipmitool工具运行ipmi命令
    [Arguments]    ${command}
    ${ipmi_cmd}=    Set Variable    ipmitool -H ${OPENUBMC_HOST} -U ${OPENUBMC_USERNAME} -P ${OPENUBMC_PASSWORD} -p ${IPMI_PORT} -C ${IPMI_C} -I lanplus ${command}
    Log    Command Input: ${ipmi_cmd}
    ${rc}    ${output}=    Run And Return Rc And Output    ${ipmi_cmd}
    RETURN    ${rc}    ${output}


